package com.future.domain.vo;



import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;



@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class PsyKnowledgeVO {
    private Long id ;
    private String title;
    private String content;
    private Integer views;
    private Integer likeCount;
    private Integer commentCount;
    private Integer collectionCount;
    private String tag;
    private String source;
    private String knowledgeType;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private PsyKnowledgeVO.author author;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @Accessors(chain = true)
    static class author{
        private String authorName;
        private Long  authorId;
        private String avatar;
        public String getAuthorId(){
            return authorId+"";
        }
    }
}